<cfscript>
	param name="PARAMS.deviation" default="0";
	dspCalendar = dspCalendar(PARAMS.deviation);
</cfscript>

<cfoutput>
	#dspCalendar#

	<cfif StructKeyExists(SESSION, "user")>
		<!--- Dialog --->
		<div id="modal" class="modal hide fade in">
			<!--- Header --->
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">&times;</button>
				<h3>Add Calendar Event</h3>
			</div>
			<!--- Body --->
			<div class="modal-body">
				<p>
					<form id="calendarEventForm" class="form-horizontal">
						<fieldset>
							<div class="control-group">
								<label class="control-label" for="">Event Title:</label>
								<div class="controls">
									<input type="text" />
								</div>
							</div>

							<div class="control-group">
								<label class="control-label" for="">Start Date:</label>
								<div class="controls">
									#dspDatePicker(id="calendarStartDate")#
								</div>
							</div>

							<div class="control-group">
								<label class="control-label" for="">End Date:</label>
								<div class="controls">
									#dspDatePicker(id="calendarEndDate")#
								</div>
							</div>

							<div class="control-group" style="margin-top: 3em;">
								<label class="control-label" for="">Event Description:</label>
								<div class="controls">
									<textarea row="20" style="width:220px;height:125px;">
									</textarea>
								</div>
							</div>
						</fieldset>
					</form>
				</p>
			</div>
			<!--- Footer --->
			<div class="modal-footer">
				<a href="##" class="btn" data-dismiss="modal">Close</a>
				<a href="##" class="btn btn-primary saveButton">Save changes</a>
			</div>
		</div>
	</cfif>
</cfoutput>